LocationId.
Prerequisites
- Obtain an access token from
/auth/tokenusing yourClientIdandClientSecret. - Register the company and keep its
CompanyReferenceId.
Add a Location
UsePOST /Company/{companyReferenceId}/Locations to add a location to an existing company.
Endpoint
- URL:
https://api.synchpay.com/Company/{companyReferenceId}/Locations - Method:
POST - Authorization:
Bearer <AccessToken>
Path Parameter
Request Body
Response
The response contains the UUID to use when creating payments for this location.List Locations
UseGET /Company/{companyReferenceId}/Locations to retrieve every location for a company.
Endpoint
- URL:
https://api.synchpay.com/Company/{companyReferenceId}/Locations - Method:
GET - Authorization:
Bearer <AccessToken>
Response
Id as LocationId when you create a payment request, create a recurring payment, authorize a card, or charge a saved card.