EndpointsGet offer details

offers

Get offer details

Returns an Offer. Without a session, an Offer open to anyone signed in shows its public view; an email-restricted one answers 401 until you sign in. A customer it is for sees the basic view while it can be redeemed; archived or expired Offers answer 410 to them. Members of the seller Workspace may read the full view.

GET/offers/{id}
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

idstringrequired

Offer ID

Required string length: 1 - 56

Example: "offer_j572abc..."

viewenum<string>

public is what anyone with the link sees, also without a session (only for an Offer open to anyone signed in); basic (the default when signed in) is what a customer the Offer is for may see; full is for members of the seller Workspace. Without a session the answer is public.

Available options: public, basic, full

Response

application/json

Offer details

viewenum<string>required

Available options: full

idstringrequired

Required string length: 1 - 56

short_hashstringrequired

The 8-character code of the customer link /i/<short_hash>

Example: "aB3xK9pQ"

urlstring<uri>required

The link the seller shares with customers.

Maximum string length: 2048

html_urlstring<uri>required

Absolute dashboard URL for this resource. OUTPUT_ONLY.

Maximum string length: 2048

workspace_idstringrequired

Required string length: 1 - 53

product_idstringrequired

Required string length: 1 - 55

packageobjectrequired

The Package version the Offer installs.

child attributes
package.idstringrequired

Required string length: 1 - 54

package.versionstringrequired
package.version_idstringrequired

Required string length: 1 - 55

termsobjectrequired

What the customer pays: nothing, for now.

child attributes
terms.kindenum<string>required

Available options: no-charge

audienceobjectrequired

Who may redeem: anyone signed in with the link, or only people whose verified email is listed.

audience.kindenum<string>required

Available options: anyone-signed-in

field_valuesrecord<string, object>required
child attributes
field_values.lockedbooleanrequired
max_redemptionsintegerrequired
redemption_countintegerrequired

Required range: x >= 0

expires_atinteger | nullrequired

Unix timestamp (seconds)

Required range: x >= 0

statusenum<string>required

Available options: active, archived

created_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0

etagstringrequired