Bulk Import Beneficiary Status

The Bulk Import Beneficiary Job Status can be obtained by utilizing the API.

GET/payments/beneficiaries/import/{job_id}

Body Parameters Request

NameTypeFormat / ValuesDescriptionRequired

job_id

string

The job id to fetch status for

Yes

Body Parameters Response

NameTypeFormat / ValuesDescription

job_id

string

The job id assigned to this import

started_at

string

date-time

The time the import job started

completed_at

string

date-time

The time the import job completed

processed

integer

The total number of items processed so far

total

integer

Total number of items in bulk

processing

integer

The number of items currently being processed

failed

integer

Total number of failed items

status

string

QUEUED, DONE

The current job status

progress

array

object

List of item progress

progress[]

object

progress[].row

integer

The index of the item

progress[].error

object

Information regarding error encountered for this item

progress[].error.error_info

object

progress[].error.error_info.valid

boolean

Is this item valid

progress[].error.error_info.warnings

array

object

List of warnings encountered for this item

progress[].error.error_info.warnings[]

object

progress[].error.error_info.warnings[].properties

array

string

the properties this issue applies to

progress[].error.error_info.warnings[].properties[]

string

progress[].error.error_info.warnings[].description

string

Description of issue

progress[].error.error_info.errors

array

object

List of errors encountered for this item

progress[].error.error_info.errors[]

object

progress[].error.error_info.errors[].properties

array

string

the properties this issue applies to

progress[].error.error_info.errors[].properties[]

string

progress[].error.error_info.errors[].description

string

Description of issue

progress[].error.error_code

integer

The error code associated with this issue

progress[].error.error

string

error type encountered

progress[].error.message

string

Human readable error information

progress[].status

string

FAILED, SUCCESS

The status of this item's import

Request Example

GET /payments/beneficiaries/import/TPy4DcQATiqZRRzTMEXt2Q

Response Examples

{
   "completed_at": "2024-03-04T10:56:53.396911923Z",
   "processed": 2,
   "total": 3,
   "job_id": "TPy4DcQATiqZRRzTMEXt2Q",
   "started_at": "2024-03-04T10:56:51.126587470Z",
   "processing": 0,
   "progress": [
      {
         "row": 0,
         "error": {
            "error_info": {
               "valid": false,
               "warnings": [],
               "errors": [
                  {
                     "description": "Missing property bank_name",
                     "properties": [
                        "$.bank_details"
                     ]
                  }
               ]
            },
            "error_code": 422,
            "error": "unprocessable_entity",
            "message": "Payload object is invalid"
         },
         "status": "FAILED"
      },
      {
         "row": 1,
         "status": "SUCCESS"
      },
      {
         "row": 2,
         "status": "SUCCESS"
      }
   ],
   "failed": 1,
   "status": "DONE"
}

Last updated

© All rights reserved to papaya global 2024