int

An integer number, (from -2147483648 to 2147483648) 

double

A decimal number . (±5.0 × 10−324 to ±1.7 × 10308) .  please note : Pepperi rounds the value to 4 digits after the decimal point.

string

A string of text. length varies per object and field.

boolean

A boolean value: true or false. In JSON, it will be represented using the native boolean type. .

date and datetime

An ISO 8601 date or datetime value.  All dates output by Pepepri API responses are in GMT time.  date inputs also requires GMT format(Z). (e.g: DateTime : 2017-04-03T03:58:32Z,  Date : 2017-04-03Z)

country code

A two-character, ISO 3166-1 alpha-2 country code.

currency code

A three-character, ISO -4217 currency code.

email address

A valid email address.

resource

A string representing a URI reference to another resource within the current version of the API.

Media - images and attachments

Images and attachments in the API supports the following object fields:

  • ​URL -  URL full path of the media
    • ​​GET - always returns it
    • ​POST - uses the URL to upload the media to Pepperi (once uploaded GET will return the location on Pepperi servers)
  • Content - used for POST only. Base64 encoded byte array of the media.
  • MimeType - media type.
  • FileName - media file name.