curl --location -g --request PUT 'https://relay.exostack.cloud/{{relay_path}}/api/invoicing/purchase_order/' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"supplier_number": 0,
"date": "2019-08-24T14:15:22.123Z",
"valid_until": "2019-08-24T14:15:22.123Z",
"reference_fournisseur": "string",
"description": "string",
"shipping_info": {
"name": "string",
"att": "string",
"address": {
"line1": "string",
"city": "string",
"zipcode": "string",
"country_code": "string"
}
},
"sub_total": 0,
"shipping_amount": 0,
"tax_total": 0,
"total": 0,
"term_code": 0,
"language_code": "string",
"details": [
{
"line_number": 0,
"sku": "string",
"description": "string",
"unit_price": 0,
"discount_percent": 0,
"ordered_qty": 0,
"invoiced_qty": 0,
"selling_price": 0,
"tax_amount_1": 0,
"tax_amount_2": 0,
"total": 0,
"product_group": 0
}
],
"reference": {
"supplier_id": 0,
"project_id": 0,
"tax_group_id": 0
}
}'{
"id": 0,
"type": "string",
"supplier_number": 0,
"date": "2019-08-24T14:15:22.123Z",
"valid_until": "2019-08-24T14:15:22.123Z",
"reference_fournisseur": "string",
"description": "string",
"supplier_info": {
"name": "string",
"att": "string",
"address": {
"line1": "string",
"city": "string",
"zipcode": "string",
"country_code": "string"
}
},
"shipping_info": {
"name": "string",
"att": "string",
"address": {
"line1": "string",
"city": "string",
"zipcode": "string",
"country_code": "string"
}
},
"sub_total": 0,
"shipping_amount": 0,
"tax_total": 0,
"total": 0,
"term_code": 0,
"term_description": "string",
"language_code": "string",
"statuses": {
"expired": true
},
"details": [
{
"line_number": 0,
"sku": "string",
"description": "string",
"unit_price": 0,
"ordered_qty": 0,
"received_qty": 0,
"tax_amount_1": 0,
"tax_amount_2": 0,
"total": 0,
"product_group": 0
}
],
"updated_at": "2019-08-24T14:15:22.123Z",
"deleted": true,
"reference": {
"supplier_id": 0,
"project_id": 0,
"tax_group_id": 0,
"updated_by_user_id": 0,
"card_pos": 0,
"language_id": 0
}
}