Logo PopinaPopina API

Push changes

Send array of transactions (transactions are arrays of changes)

POST/v1/push/
authorization<token>

To get an API key, please contact us. We'll be happy to help you.

In: header

transactions

Response Body

application/json

curl -X POST "http://localhost:4001/v1/push/" \  -H "Content-Type: application/json" \  -d '{    "transactions": [      {        "id": "9b5bb92d-23ce-4f0f-a901-9f4338a14cfd",        "changes": [          {            "type": "discount",            "data": {              "id": "3425735d-9cdc-468c-bb62-1d97a0868d1a",              "name": "Remise 50%",              "value": 5000,              "index": 0,              "type": "amount",              "targetPrice": "unit"            },            "action": "UPSERT",            "id": "3425735d-9cdc-468c-bb62-1d97a0868d1a"          },          {            "type": "tax",            "data": {              "id": "20ea0043-b205-57b6-8f31-5ec7778cbb3c",              "name": "TVA",              "rate": 2000,              "locationId": "7425735d-9cdc-412a-ab62-1d97a0868d1a"            },            "action": "UPSERT",            "id": "3425735d-9cdc-468c-bb62-1d97a0868d1a"          }        ],        "date": {}      }    ]  }'
{
  "recorded": [
    {
      "transactionId": "9b5bb92d-23ce-4f0f-a901-9f4338a14cfd"
    }
  ]
}