PATCH
curl -i -X PATCH \
'https://api.prana.software/api/v1/supplier/{id}' \
-H 'Content-Type: application/json' \
-d '{
"property1": null,
"property2": null
}'OK
General observations about the supplier.
Default:""
Example:"Premium supplier with fast delivery"
Geographical location type.
Default:""
Enum:"CEUTA_MELILLA_CANARIAS""COMMUNITY""NATIONAL""OTHERS"
Example:"NATIONAL"
Date of supplier creation. Format: yyyy-MM-dd
Default:""
Example:"2021-03-15"
Date when supplier became inactive. Format: yyyy-MM-dd
Default:""
Example:"2024-10-01"
Associated customer information if supplier is also a customer.
Default:""
Proximity type for payment calculation.
Default:""
Enum:"NEARBY""PREVIOUS""LATER"
Example:"FOLLOWING_MONTH"
Preferred payment weekday.
Default:""
Enum:"MONDAY""TUESDAY""WEDNESDAY""THURSDAY""FRIDAY""SATURDAY""SUNDAY"
Example:"FRIDAY"
Payment method observation description.
Default:""
Example:"Bank transfer preferred"
Bank account number.
Default:""
Example:"ES7921000813610123456789"
IRPF type for withholding tax.
Default:""
Enum:"LEASES""PROFESIONAL_ACTIVITIES""AGRO""AGRO_REAGP"
Example:"IRPF_15"
Picture or logo for the supplier.
Default:""
Example:"https://www.suppliercorp.com/logo.png"
Last modification date and time. Format: yyyy-MM-dd'T'HH:mm:ssXXX
Default:""
Example:"2024-12-10T14:30:00+01:00"
Response
{ "id": "", "code": 20001, "cif": "B87654321", "commercialName": "Supplier Corp", "vat": { "id": "", "code": "GENERAL", "description": "General VAT type" }, "name": "Supplier Corporation S.L.", "address": "Calle Mayor, 10", "country": null, "state": { "id": "", "code": "28", "description": "Madrid", "country": null, "isoCode": "ES-M" }, "postalCode": "28001", "city": "Madrid", "phone1": "+34911222333", "phone2": "+34911444555", "replacementTime": 7, "language": null, "currency": null, "manufacturer": false, "importer": true, "active": true, "notCreateOrder": false, "observation": "Premium supplier with fast delivery", "geographicalLocation": "CEUTA_MELILLA_CANARIAS", "creationDate": "2021-03-15", "inactiveDate": "2024-10-01", "accountingAccount": { "id": "", "code": "1000", "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": "100", "parentDescription": "Assets" }, "customer": null, "operator": null, "warehouse": { "id": "", "code": "ALM01", "description": "Central warehouse", "population": "Madrid", "active": true }, "email": "contact@suppliercorp.com", "paymentMethod": null, "terms": 3, "daysFirstTerm": 30, "daysBetweenTerms": 30, "discount1": 3.5, "discount2": 2, "discountPp": 1.5, "proximityType": "NEARBY", "paymentDay1": 10, "paymentDay2": 20, "paymentDay3": 30, "weekday": "MONDAY", "paymentMethodObservation": null, "paymentMethodObservationDescription": "Bank transfer preferred", "account": "ES7921000813610123456789", "swift": "BBVAESMM", "bic": "BBVAESMMXXX", "agency": { "id": "", "code": "AG001", "name": "Fast Transport Agency" }, "shippingTerm": null, "ropoCode": "ES-12345-ROPO", "ropoExpireDate": "2025-12-31", "tags": [ "PREMIUM", "INTERNATIONAL" ], "irpfType": "LEASES", "bankName": "BBVA", "contactPerson": "Juan GarcĂa", "picture": "https://www.suppliercorp.com/logo.png", "pictureToken": "a1b2c3d4e5f6", "incomeTaxRate": 15, "web": "https://www.suppliercorp.com", "modifiedOn": "2024-12-10T14:30:00+01:00", "observations": "", "files": "", "purchasingAccount": { "id": "", "code": "1000", "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": "100", "parentDescription": "Assets" }, "vatOperationType": { "id": "", "code": "E01", "description": "Intra-community acquisition of goods", "model347": true, "model349": false, "selfImposed": false }, "reportLanguage": "EN" }