API de Productos

Para consultas contactate a pay@increase.app

Recurso para obtener los productos dados de alta en Increase Pay o crear nuevos.

Cómo probar#

Recuerda usar la Base URL de staging para hacer pruebas: https://gateway.staging.increase.app/pay/public/v1/

Crear un producto#

POST https://gateway.increase.app/pay/public/v1/products

Headers#

Content-Type: application/json
Authorization: Bearer <access_token>
ParámetroTipoDescripción
name*StringNombre del producto a crear.
external_idStringIdentificador del producto en tu sistema.

Los par√°metros con * son obligatorios

Response#

{
"id": "cfbb5b44-d21c-480e-b914-15260cded92b",
"name": "New product",
"external_id": null,
"checkout_link": "http://localhost:3000/checkout/...",
"created_at": "2020-01-09T15:02:18-03:00"
}

Obtener todos los productos#

GET https://gateway.increase.app/pay/public/v1/products

Headers#

Content-Type: application/json
Authorization: Bearer <access_token>
curl --include \
--header "Content-Type: application/json" \
--header "X-Auth-Token: <tu_access_token>" \
'https://gateway.increase.app/pay/public/v1/products'

Par√°metros optativos#

ParámetroTipoDescripción
PageIntegerIndica la p√°gina a obtener resultados.
per_pageIntegerCantidad de resultados por p√°gina (M√°ximo 40).

Success response

{
"data": [
{
"id": "00000000-0000-0000-0000-000000000001",
"name": "First product",
"external_id": null,
"checkout_link": "http://localhost:3000/checkout/...",
"created_at": "2020-01-09T15:02:18-03:00"
}
],
"current_page": 1,
"per_page": 20,
"total_pages": 1,
"total_elements": 1
}

Obtener un producto específico#

GET https://gateway.increase.app/pay/public/v1/products/<id>

Headers#

Content-Type: application/json
Authorization: Bearer <access_token>