Authentication and token generation
Pigz Integrator (1.1.0)
The Pigz Integrator API allows third-party systems (such as POS systems or order platforms) to receive and manage orders from Pigz.
It is designed to integrate Pigz orders into Point of Sale (POS) systems or online ordering platforms.
Through this API, you can query new or canceled orders and update each order’s status according to the store’s operational flow.
- A customer places an order on Pigz.
- The partner POS system periodically fetches orders via the
Poolingendpoint. - Once the order reaches the POS, it should confirm receipt using the
Change Stage Orderendpoint (stage =knownorintegrated). - The POS then updates the order status through its lifecycle until it is delivered, picked up, or canceled.
This communication ensures synchronization between Pigz and partner systems.
Download OpenAPI description
Overview
E-mail
License
Languages
Servers
Mock server
https://docs.pigz.dev/_mock/openapi
https://integrador.pigz.dev
https://integrador.pigz.com.br
- Mock serverhttps://docs.pigz.dev/_mock/openapi/pooling
- https://integrador.pigz.dev/pooling
- https://integrador.pigz.com.br/pooling
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.pigz.dev/_mock/openapi/pooling \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
[ { "codigo": 123, "dataHora": "1633185348", "cliente": { … }, "itens": [ … ], "pagamentos": [ … ], "status": "PENDENTE", "desconto": 10, "subTotal": 43, "total": 39, "taxaEntrega": 6, "tipoEntrega": "RETIRADA", "entregador": "Leonercio Goesfeeld", "EnderecoRetirada": { … } } ]
- Mock serverhttps://docs.pigz.dev/_mock/openapi/orders
- https://integrador.pigz.dev/orders
- https://integrador.pigz.com.br/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.pigz.dev/_mock/openapi/orders?start=2021-01-01&end=2021-01-01' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
[ { "codigo": 1234, "dataHora": "2025-08-26T12:34:56Z", "cliente": { … }, "itens": [ … ], "pagamentos": [ … ], "status": "CONFIRMADO", "tipoEntrega": "DELIVERY" } ]
Request
Updates the status of an order.
Requires a valid Bearer Token.
integradoorconhecido: order received by the POSconfirmado: order accepted by the storedespachado: order sent out for deliveryprontoRetirada: order ready for in-store pickupentregue: order delivered to the customercancelado: order canceled
⚠️ Important: Do not mark an order as delivered and then attempt to cancel it afterward.
Security
bearerAuth
- Mock serverhttps://docs.pigz.dev/_mock/openapi/order/{id}/{stage}
- https://integrador.pigz.dev/order/{id}/{stage}
- https://integrador.pigz.com.br/order/{id}/{stage}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://docs.pigz.dev/_mock/openapi/order/3105/conhecido \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "message": "Altered Stage", "time": 959804400 }