Skip to Content

Suppliers API

Access and create your suppliers.

Read scope: suppliers:read Write scope: suppliers:write

List Suppliers

GET /suppliers

Returns all suppliers for your business.

Query Parameters

ParameterTypeDescription
pageintegerPage number (default: 1)
page_sizeintegerItems per page (default: 50, max: 100)

Example Request

curl -H "Authorization: Bearer rb_live_YOUR_API_KEY" \ "https://api.rebased.app/api/v1/external/suppliers?page=1"

Example Response

{ "suppliers": [ { "id": "660e8400-e29b-41d4-a716-446655440000", "name": "Office Supplies Co", "tax_number": "98765432100", "address_line_1": "456 Supplier Road", "address_line_2": null, "city": "Melbourne", "state": "VIC", "postcode": "3000", "country": "Australia", "created_at": "2026-01-10T08:00:00Z", "updated_at": "2026-02-15T11:30:00Z" } ], "total": 1, "page": 1, "page_size": 50, "has_more": false }

Get Supplier

GET /suppliers/{id}

Returns a single supplier by ID.

Path Parameters

ParameterTypeDescription
idstring (UUID)The supplier ID

Example Request

curl -H "Authorization: Bearer rb_live_YOUR_API_KEY" \ "https://api.rebased.app/api/v1/external/suppliers/660e8400-e29b-41d4-a716-446655440000"

Create Supplier

POST /suppliers

Creates a new supplier.

Request Body

FieldTypeRequiredDescription
namestringYesSupplier name
tax_numberstringNoTax identification number (ABN/ACN for AU)
address_line_1stringNoStreet address line 1
address_line_2stringNoStreet address line 2
citystringNoCity
statestringNoState/province
postcodestringNoPostal code
countrystringNoCountry (default: Australia)
emailstringNoSupplier email (displayed on supplier detail)
phonestringNoSupplier phone (displayed on supplier detail)
contactsarrayNoArray of contact objects to create (see below)

Contact Object (in contacts array)

FieldTypeRequiredDescription
first_namestringYesContact first name
last_namestringNoContact last name
emailstringNoContact email
phonestringNoContact phone
mobilestringNoContact mobile
positionstringNoJob title / position
is_purchasing_contactbooleanNoPurchasing contact flag (default: false)
is_accounts_contactbooleanNoAccounts contact flag (default: false)

Note: If contacts is not provided but email or phone is, a contact will be automatically created using the supplier name.

Example Request

curl -X POST \ -H "Authorization: Bearer rb_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Office Supplies Co", "tax_number": "98765432100", "email": "orders@officesupplies.com", "phone": "+61 3 9876 5432", "address_line_1": "456 Supplier Road", "city": "Melbourne", "state": "VIC", "postcode": "3000", "contacts": [ { "first_name": "Bob", "last_name": "Jones", "email": "bob@officesupplies.com", "position": "Account Manager", "is_accounts_contact": true } ] }' \ "https://api.rebased.app/api/v1/external/suppliers"

Example Response (201 Created)

{ "id": "660e8400-e29b-41d4-a716-446655440000", "name": "Office Supplies Co", "tax_number": "98765432100", "address_line_1": "456 Supplier Road", "address_line_2": null, "city": "Melbourne", "state": "VIC", "postcode": "3000", "country": "Australia", "created_at": "2026-04-04T08:00:00Z", "updated_at": null }

Supplier Object

FieldTypeDescription
idstringUnique identifier (UUID)
namestringSupplier name
tax_numberstringTax identification number (ABN/ACN for AU)
address_line_1stringStreet address line 1
address_line_2stringStreet address line 2
citystringCity
statestringState/province
postcodestringPostal code
countrystringCountry
created_atdatetimeWhen the supplier was created
updated_atdatetimeWhen the supplier was last updated
Last updated on