Leat Docs
Register APIOther

POS Transactions

For the completeness of data in the Piggy system, Piggy Clients may choose to create POS Transactions and link these to Credit Receptions.

For the completeness of data in the Piggy system, Piggy Clients may choose to create POS Transactions and link these to Credit Receptions.


Create POS Transaction

Creates a POS Transaction in the Piggy system. You may choose to set a transaction ID and/or a terminal ID.

POST

https://api.piggy.eu/api//pos-transactions

Headers

Authorization

Bearer {{ api_key }}

Accept

application/json

Body

amount_in_cents number

REQUIRED

Purchase amount in cents (€10.40 = 1040)

transaction_id number

OPTIONAL

ID for transaction

terminal_id number

OPTIONAL

ID of the terminal used for transaction

Response Example

{
    "data": {
        "uuid": "1234-abcdefgh-5678-defghijk",
        "transaction_id": "1",
        "terminal_id": "1",
        "created_at": "2021-01-01T12:00:00+00:00",
        "amount_in_cents": 100
    }
}

Code

Message

1003

Invalid input.


Push POS Transaction

Send a push to Device after a POS Transaction creation, so a Credit Reception may be created using the Device.

POST

https://api.piggy.eu/api//pos-transactions/{pos_transaction_uuid}/push

Headers

Authorization

Bearer {{ api_key }}

Accept

application/json

Params

pos_transaction_uuid string

REQUIRED

The POS Transaction UUID

Response Example

{
    "data": [ ],
    "meta": [ ]
}

Code

Message

1027

POS Transaction not found.

6001

The POS transaction is already linked to a credit reception.

On this page