Authentication
HTTP requests to the REST API are protected with HTTP Basic authentication.
In short, you will use your Auth Token as the password for HTTP Basic authentication with Biteship.
Note that Biteship Auth Token will have biteship_live. or biteship_test. as a prefix in every token issued and token identifier called token Id to help you manage your API keys.
curl --request POST \
--url https://api.biteship.com/v1/rates/couriers \
--header 'authorization: <<YOUR_API_KEY>>' \
--header 'content-type: application/json' \
Generate New API Key
Go to Biteship dashboard integration page at https://dashboard.biteship.com/integrations and click "Pengaturan" to start setting up your API key.

Click "Tambah Kunci API" to generate new API key.

You will be prompt to name your API Key

API key will be automatically generated. API key will be shown only once. Make sure you keep it save.

Your key will be generated and shown here at the API integration page. However, your Order API will be not active yet. You need to submit an activation request to activate your Order API.

Key for Testing
For testing purpose, make sure you activate the "Testing Mode" toggle in the sidebar. And you can follow the same process to generate your testing API key.

However, for Testing Mode, your Order API will be active by default for you to test.

Authentication Error Codes
Code | Message |
---|---|
40000001 | Authentication for your key has failed. Please make sure to input the right key or contact [email protected] for more information. |
40101001 | Authorization failed |
40101002 | No account found with associated key |
40101003 | Cannot process authorization |
40301001 | There's no match token for this key |
40301002 | User information not found. |