Skip to content
Batches

Create Batch

POST/api/batches

Initialize loading of entities from a batch file.

Request body

  • accountIdrequired string
    Centrapay Account Id that submitted the Batch.
  • testoptional boolean
    true if the batch is for testing purposes only.
  • typerequired enum
    The Batch Type, which describes the batch content.
  • urlrequired string
    The url where the file is located.

Responses

Request
curl -X POST https://service.centrapay.com/api/batches \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"accountId": "C4QnjXvj8At6SMsEN4LRi9",
"test": true,
"type": "farmlands-external-asset",
"url": "https://sabtestcardcomcentrapay.blob.core.windows.net/outbound/1234"
}'