Suppliers
Add a supplier
https://your-business.qaydtech.com/api/v1/suppliers
Adds an individual or a business supplier. No national address is asked; a VAT number is never repeated among suppliers.
Request
Headers
-
Authorizationstring requiredBearer followed by the API key.
Example:
Bearer qayd_… -
Accept-Languagestring optionalen for English error messages. Arabic by default.
Example:
en -
Content-Typestring requiredapplication/json with every request that has a body.
Example:
application/json -
Idempotency-Keystring optionalA unique value so a request sent again creates nothing twice.
Example:
order-10045
Request body application/json
-
typestring requiredThe type: individual or business for a customer; product or service for an item; asset, liability, equity, revenue or expense for an account.
Example:
business -
namestring requiredThe name in Arabic, 2 to 150 characters.
Example:
شركة النخبة للتجارة -
name_enstring optionalThe name in English.
Example:
Al Nokhba Trading Co. -
vat_numberstring optionalVAT number: 15 digits starting and ending with 3.
Example:
310123456700003 -
commercial_registrationstring optionalCommercial registration: 10 digits.
Example:
1010123456 -
contact_namestring optionalThe contact person.
Example:
سارة العتيبي -
phonestring optionalMobile or phone.
Example:
0551234567 -
emailstring optionalEmail.
Example:
[email protected] -
addressobject optionalThe national address. Required in full for a business customer when added.
-
city_idinteger optionalThe city number from GET /cities; the region follows from it.
Example:
3 -
districtstring optionalDistrict.
Example:
العليا -
streetstring optionalStreet.
Example:
طريق الملك فهد -
building_numberstring optionalBuilding number: 4 digits.
Example:
1234 -
postal_codestring optionalPostal code: 5 digits.
Example:
12345 -
additional_numberstring optionalAdditional number: 4 digits.
Example:
5678 -
short_addressstring optionalShort address: 4 letters then 4 digits.
Example:
RRRD2929 -
payment_term_daysinteger optionalPayment term in days, 0 to 365.
Example:
30 -
credit_limitnumber optionalCredit limit in riyals.
Example:
50000.00 -
messages_opt_outboolean optionaltrue if the customer asked for no automatic messages.
Example:
false -
is_activeboolean optionalfalse to stop it (a customer, an item, a webhook address); true to resume it.
Example:
true -
notesstring optionalNotes, up to 500 characters.
Responses
- 201 Created
- Errors · 401 · 403 · 429