Skip to content
Console
On this page

Claim codes

ClaimCodeReceipt records one code and its exact seat disposition.

ClaimCodeReceipt records one code and its exact seat disposition.

Service Sylphx Money · Resource type money.sylphx.com/ClaimCodeReceipt · Name pattern orgs/{org}/projects/{project}/envs/{env}/reseller_channels/{reseller_channel}/claim_codes/{claim_code_receipt} · Shape record

Fields

FieldTypeWhat it is
namestringCanonical resource name.
uidstringImmutable resource identifier. Output only.
metaResourceMetaResource metadata. Output only.
code_idstringOpaque code identifier, not the redeemable bearer value. Output only.
codestringOmitted by protobuf on terminal receipts (no plaintext remains available). Output only. Never returned again.
code_maskedstringNon-redeemable display hint. Output only.
partner_order_idstringStable reseller-assigned order identifier. Output only.
price_keystringPrice key from the environment catalog. Output only.
seatsint32Total seats in this receipt. Output only.
redeemed_seatsint32Seats already claimed by a buyer. Output only.
unclaimed_seatsint32Seats that were not claimed. Output only.
expires_attimestampExclusive expiry boundary. Money sets it 24 hours after mint. Output only.
dispositionstringBusiness state of this receipt, not a payment status. Output only.

Methods

Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.

MethodCallWhat it does
POSTmintMintClaimCode mints one bearer code with a 24-hour claim window.
POSTvoidVoidClaimCode returns whether any seats were claimed before the code was voided.

mint

MintClaimCode mints one bearer code with a 24-hour claim window.

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/reseller_channels/reseller-channel/claim_codes:mint · scope money:partner_resold:write · effect write · Request, response and examples

void

VoidClaimCode returns whether any seats were claimed before the code was voided.

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/reseller_channels/reseller-channel/claim_codes:void · scope money:partner_resold:write · effect write · Request, response and examples