Overview
The ReturnPilot API uses a variety of formats and conventions to ensure consistency across its endpoints. This guide provides an overview of the formats you can expect to encounter when working with the API.Timestamps
All timestamps returned by the API follow the given format:The time zone is always Coordinated Universal Time (UTC).
Phone Numbers
The E.164 standard is used for recording and displaying phone numbers. This requires that a number be formatted like so:Rules
- It must begin with a
+
symbol prefix. - It must include the country code.
- It must exclude any leading zeros.
- It must include the area code.
- It must include all remaining digits.
- It must not include internal routing e.g. office extensions.
- It must not include any other characters e.g. spaces or hyphens.
Examples
The following table demonstrates how a locally-formatted number in a particular country should be written to be E.164-compliant:Country | Local | E.164 |
---|---|---|
Australia | 0491 570 159 | +61491570159 |
Canada | 206-953-6978 | +12069536978 |
Ireland | 0889 105 586 | +353889105586 |
New Zealand | 09 567 4562 | +64495674562 |
UK | 07158 656473 | +447158656473 |
USA | 206-953-6978 | +12069536978 |