Skip to main content
Retrieve the details of a sale by its unique identifier.

Endpoint

GET https://api.gumroad.com/v2/sales/:id

Authentication

Requires the view_sales OAuth scope.

Path Parameters

id
string
required
The unique external ID of the sale to retrieve.

Response

Returns a sale object if a valid identifier was provided.
success
boolean
required
Indicates if the request was successful.
sale
object
required
The sale object.

Example Request

curl "https://api.gumroad.com/v2/sales/ABC123XYZ" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Example Response

{
  "success": true,
  "sale": {
    "id": "ABC123XYZ",
    "email": "[email protected]",
    "seller_id": "seller456",
    "timestamp": "2 days ago",
    "daystamp": "January 15, 2024 at 10:30 AM PST",
    "created_at": "2024-01-15T10:30:45.000Z",
    "product_id": "prod_abc123",
    "product_name": "My Awesome Product",
    "product_permalink": "myproduct",
    "product_has_variants": true,
    "price": 2999,
    "gumroad_fee": 314,
    "formatted_display_price": "$29.99",
    "formatted_total_price": "$29.99",
    "currency_symbol": "$",
    "amount_refundable_in_currency": "$29.99",
    "order_id": 123456789,
    "purchase_email": "[email protected]",
    "full_name": "John Doe",
    "purchaser_id": "user_789",
    "street_address": "123 Main St",
    "city": "San Francisco",
    "state": "CA",
    "zip_code": "94102",
    "country": "United States",
    "country_iso2": "US",
    "refunded": false,
    "partially_refunded": false,
    "chargedback": false,
    "disputed": false,
    "dispute_won": false,
    "subscription_id": null,
    "variants": {
      "Size": "Large",
      "Color": "Blue"
    },
    "has_variants": true,
    "custom_fields": {
      "Company": "Acme Corp"
    },
    "has_custom_fields": true,
    "quantity": 1,
    "shipped": false,
    "is_recurring_billing": false,
    "is_product_physical": false,
    "can_contact": true,
    "is_following": false,
    "referrer": "https://twitter.com",
    "card": {
      "visual": "4242",
      "type": "Visa"
    },
    "is_gift_sender_purchase": false,
    "is_gift_receiver_purchase": false,
    "is_bundle_purchase": false,
    "is_bundle_product_purchase": false
  }
}

Error Response

If the sale is not found or doesn’t belong to the authenticated user:
{
  "success": false,
  "message": "The sale was not found."
}

Error Codes

400
error
Bad Request - Invalid sale ID format
401
error
Unauthorized - Invalid or missing access token
403
error
Forbidden - Token does not have view_sales scope
404
error
Not Found - Sale does not exist or does not belong to the authenticated user

Build docs developers (and LLMs) love