Skip to main content
POST
https://staging-api.propaga.io/v1
/
transaction
/
batch
curl --location --request POST 'https://staging-api.propaga.io/v1/transaction/batch'
--header 'Authorization: <your_awesome_token>' 
--header 'Content-Type: application/json'
--data '{
    "transactions": [
        {
            "cornerStoreId": "57b9d911-1c6e-45c0-be98-bfaeec8d9cf8",
            "movementDate": "2024-12-31T00:00:00Z",
            "totalAmount": 1234,
            "wholesalerTransactionId": "123413123123",
            "deliveryDate": "2024-12-31",
            "products": [
                {
                    "externalSKU": "7501018310103",
                    "name": "Pasta Spaghetti La Moderna - Moderna - Paquete 200 g",
                    "quantity": 5
                }
            ],
            "metadata": {}
        }
    ],
    "driverId": "12345"
}'
[
    {
        "incrementalID": 999,
        "transactionId": "13e8b9f0-b73f-4498-a245-05aaae7893dc",
        "totalAmount": 1234,
        "totalAmountWithInterests": 1234,
        "status": "accepted",
        "cornerStoreId": "57b9d911-1c6e-45c0-be98-bfaeec8d9cf8"
    },
    {
        "status": "rejected",
        "rejectionReasons": [
            "INSUFFICIENT_CREDIT"
        ],
        "wholesalerTransactionId": "123413123123",
        "cornerStoreId": "57b9d911-1c6e-45c0-be98-bfaeec8d9cf8"
    }
]
When you call this endpoint, we internally perform several validations, including checking the transaction amount, the customer’s status, and their available credit.
curl --location --request POST 'https://staging-api.propaga.io/v1/transaction/batch'
--header 'Authorization: <your_awesome_token>' 
--header 'Content-Type: application/json'
--data '{
    "transactions": [
        {
            "cornerStoreId": "57b9d911-1c6e-45c0-be98-bfaeec8d9cf8",
            "movementDate": "2024-12-31T00:00:00Z",
            "totalAmount": 1234,
            "wholesalerTransactionId": "123413123123",
            "deliveryDate": "2024-12-31",
            "products": [
                {
                    "externalSKU": "7501018310103",
                    "name": "Pasta Spaghetti La Moderna - Moderna - Paquete 200 g",
                    "quantity": 5
                }
            ],
            "metadata": {}
        }
    ],
    "driverId": "12345"
}'
[
    {
        "incrementalID": 999,
        "transactionId": "13e8b9f0-b73f-4498-a245-05aaae7893dc",
        "totalAmount": 1234,
        "totalAmountWithInterests": 1234,
        "status": "accepted",
        "cornerStoreId": "57b9d911-1c6e-45c0-be98-bfaeec8d9cf8"
    },
    {
        "status": "rejected",
        "rejectionReasons": [
            "INSUFFICIENT_CREDIT"
        ],
        "wholesalerTransactionId": "123413123123",
        "cornerStoreId": "57b9d911-1c6e-45c0-be98-bfaeec8d9cf8"
    }
]

Body

transactions
array
required
cornerStoreId
string
required
Propaga’s corner store id
totalAmount
number
required
Total amount of the order
wholesalerTransactionId
string
Your internal ID for this order
movementDate
string
Date of the transaction
deliveryDate
string
An estimated delivery date
products
array
required
metadata
object
required
Any metadata you want to save for the transaction
driverId
string
required
Driver id

Response

incrementalID
number
Propaga’s incremental numeric id
transactionId
string
Propaga’s transaction id
totalAmount
number
Total amount of the order
totalAmountWithInterests
number
Total amount of the order with interests
status
string
Transaction status batch (accepted, rejected)
cornerStoreId
string
Propaga’s corner store id
rejectionReasons
string[]
Reasons for rejection