Recibir orden de compra
curl --request POST \
--url https://api.lapyme.com.ar/api/v1/purchase-orders/{purchase_order_id}/receipts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"items": [
{
"purchase_order_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"received_quantity": 123
}
]
}
'{
"request_id": "<string>",
"data": {
"receipt": {
"object": "<string>",
"id": "<string>",
"purchase_order_warehouse_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"affected_products": [
{
"sku": "<string>",
"warehouse_id": "<string>"
}
]
},
"purchase_order": {
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_number": 123,
"formatted_order_number": "<string>",
"order_date": "2023-12-25",
"expected_date": "2023-12-25",
"currency": "<string>",
"supplier": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"email": "<string>",
"phone": "<string>",
"tax_id_type": "<string>",
"tax_id": "<string>",
"tax_category": "<string>",
"payment_term_id": "<string>",
"address": "<string>",
"apartment": "<string>",
"city": "<string>",
"province": "<string>",
"postal_code": "<string>"
},
"warehouse": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"warehouse_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"notes": "<string>",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ordered_quantity": 123,
"received_quantity": 123,
"expected_unit_cost": 1,
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sku": "<string>",
"variant_options": {},
"option_names": [
"<string>"
]
}
}
]
},
"idempotent_replay": true
},
"warnings": [
"<unknown>"
]
}Recibir orden de compra
Registra la recepción de líneas de una orden de compra confirmada. Requiere Idempotency-Key.
POST
/
api
/
v1
/
purchase-orders
/
{purchase_order_id}
/
receipts
Recibir orden de compra
curl --request POST \
--url https://api.lapyme.com.ar/api/v1/purchase-orders/{purchase_order_id}/receipts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"items": [
{
"purchase_order_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"received_quantity": 123
}
]
}
'{
"request_id": "<string>",
"data": {
"receipt": {
"object": "<string>",
"id": "<string>",
"purchase_order_warehouse_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"affected_products": [
{
"sku": "<string>",
"warehouse_id": "<string>"
}
]
},
"purchase_order": {
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_number": 123,
"formatted_order_number": "<string>",
"order_date": "2023-12-25",
"expected_date": "2023-12-25",
"currency": "<string>",
"supplier": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"email": "<string>",
"phone": "<string>",
"tax_id_type": "<string>",
"tax_id": "<string>",
"tax_category": "<string>",
"payment_term_id": "<string>",
"address": "<string>",
"apartment": "<string>",
"city": "<string>",
"province": "<string>",
"postal_code": "<string>"
},
"warehouse": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"warehouse_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"notes": "<string>",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ordered_quantity": 123,
"received_quantity": 123,
"expected_unit_cost": 1,
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sku": "<string>",
"variant_options": {},
"option_names": [
"<string>"
]
}
}
]
},
"idempotent_replay": true
},
"warnings": [
"<unknown>"
]
}Authorizations
Incluí tu API key en el header Authorization con el prefijo Bearer.
Headers
Clave estable para deduplicar reintentos de la misma operación.
Path Parameters
ID de la orden de compra
Body
application/json
Minimum array length:
1Show child attributes
Show child attributes
Was this page helpful?
⌘I

