Skip to main content

Trigger sync Transfer Order

Use this api to trigger event create new tf in ax

Flow: When call the api, tf service will search currently transfer orders which sync_ax_statuc is NONE, FAIL, PROCESSING then trigger a sync ax job.

URL : /api/trigger-sync-ax-transfer-order

Method : POST

Validate Rule

"order_number" => ['required_without:tf_request_id', 'exists:transfer_orders,order_number'],
"tf_request_id" => ['required_without:order_number', 'exists:transfer_orders,tf_request_id'],

Input

{
"tf_request_id": "TFRQ39334"
}

Success Response

Code : 200 OK

Content example

{
"success": true,
"errors": null,
"errorCode": null,
"data": {
"sync": 1
}
}

Error Response

Code : 400 BAD REQUEST

Content :

{
"success": false,
"errors": {
"tf_request_id": [
"The selected tf request id is invalid."
]
},
"errorCode": "INVALID_INPUT",
"data": null
}