Attachments

The attachment object and its fields

Addresses can be associated to orders as their shipping or billing addresses. Add a Google or Bing geocoder to a market if you want its addresses to be automatically geocoded. Customers can save their most used addresses in their address books (as customer addresses).

The attachment object

An attachment object is returned as part of the response body of each successful create, list, retrieve, or update API call.

Field

Type

Description

type

string

attachments

id

string

The attachment unique identifier

links.self

string

The attachment endpoint URL

attributes.name

string

The internal name of the attachment.

attributes.description

string

An internal description of the attachment.

attributes.url

string

The attachment URL.

attributes.id

string

Unique identifier for the resource (hash).

attributes.created_at

datetime

Time at which the resource was created.

attributes.updated_at

datetime

Time at which the resource was last updated.

attributes.reference

string

A string that you can use to add your own identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool or a CRM.

attributes.metadata

object

Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format.

relationships.attachable

object

The resource the attachment belongs to

meta.mode

string

The resource environment (can be one of test or live)