SellAuth

Invoices

Get Invoices

Retrieves the invoices.

GET
/v1/shops/{shopId}/invoices

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonOptional
pageinteger
perPageinteger

Must be at least 1. Must not be greater than 100.

orderColumnstring
Value in: "id" | "price_usd" | "paid_usd" | "created_at" | "completed_at"
orderDirectionstring
Value in: "asc" | "desc"
idstring
statusesarray<string>
emailstring
gatewaysarray<string>
created_at_startstring

Must be a valid date.

created_at_endstring

Must be a valid date. Must be a date after created_at_start.

completed_at_startstring

Must be a valid date.

completed_at_endstring

Must be a valid date. Must be a date after completed_at_start.

product_namestring
variant_namestring
coupon_codestring
ipstring
discord_idstring
discord_usernamestring
deliverablestring
custom_fieldstring
archivedstring
manualstring
stripe_pi_idstring
paypal_order_idstring
cashapp_notestring
paypalff_notestring
venmo_notestring
customer_idstring

Path Parameters

shopIdRequiredinteger
curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/invoices" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "page": 5,
    "perPage": 24,
    "orderColumn": "id",
    "orderDirection": "asc",
    "id": "perspiciatis",
    "statuses": [
      "confirming"
    ],
    "email": "yquitzon@example.com",
    "gateways": [
      "Venmo"
    ],
    "created_at_start": "2025-04-16T18:02:08",
    "created_at_end": "2044-09-15",
    "completed_at_start": "2025-04-16T18:02:08",
    "completed_at_end": "2069-12-25",
    "product_name": "aut",
    "variant_name": "a",
    "coupon_code": "modi",
    "ip": "aliquid",
    "discord_id": "necessitatibus",
    "discord_username": "consequatur",
    "deliverable": "dicta",
    "custom_field": "porro",
    "archived": null,
    "manual": null,
    "stripe_pi_id": "placeat",
    "paypal_order_id": "vitae",
    "cashapp_note": "ut",
    "paypalff_note": "perspiciatis",
    "venmo_note": "et",
    "customer_id": "aliquam"
  }'

{
  "message": "No query results for model [App\\Models\\Shop] 1"
}

Get Invoice

Retrieves a specific invoice.

GET
/v1/shops/{shopId}/invoices/{invoiceId}

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
invoiceIdRequiredstring
curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/invoices/voluptatem" \
  -H "Authorization: Bearer <token>"

{
  "message": "No query results for model [App\\Models\\Shop] 1"
}

Archive Invoice

Marks an invoice as archived.

POST
/v1/shops/{shopId}/invoices/{invoiceId}/archive

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
invoiceIdRequiredstring
curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/invoices/ut/archive" \
  -H "Authorization: Bearer <token>"

Unarchive Invoice

Marks an invoice as unarchived.

POST
/v1/shops/{shopId}/invoices/{invoiceId}/unarchive

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
invoiceIdRequiredstring
curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/invoices/sunt/unarchive" \
  -H "Authorization: Bearer <token>"

Cancel Invoice

Marks an invoice as cancelled.

POST
/v1/shops/{shopId}/invoices/{invoiceId}/cancel

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
invoiceIdRequiredstring
curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/invoices/nam/cancel" \
  -H "Authorization: Bearer <token>"

Refund Invoice

Marks an invoice as refunded.

POST
/v1/shops/{shopId}/invoices/{invoiceId}/refund

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
invoiceIdRequiredstring
curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/invoices/perspiciatis/refund" \
  -H "Authorization: Bearer <token>"

Update Invoice Dashboard Note

Updates the invoice dashboard note.

PUT
/v1/shops/{shopId}/invoices/{invoiceId}/dashboard-note

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
invoiceIdRequiredstring
curl -X PUT "https://api.sellauth.com/v1/shops/{shopId}/invoices/non/dashboard-note" \
  -H "Authorization: Bearer <token>"

GET
/v1/shops/{shopId}/invoices/{invoiceId}/pdf

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
invoiceIdRequiredstring
curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/invoices/accusantium/pdf" \
  -H "Authorization: Bearer <token>"

{
  "message": "No query results for model [App\\Models\\Shop] 1"
}

Process Invoice

Processes an invoice.

GET
/v1/shops/{shopId}/invoices/{invoiceId}/process

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
invoiceIdRequiredstring
curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/invoices/dolores/process" \
  -H "Authorization: Bearer <token>"

{
  "message": "No query results for model [App\\Models\\Shop] 1"
}

Replace Delivered

Replaces the delivered items of an invoice.

POST
/v1/shops/{shopId}/invoices/{invoiceId}/replace-delivered

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonRequired
invoice_item_idRequiredinteger
replacementsRequiredobject

Path Parameters

shopIdRequiredinteger
invoiceIdRequiredstring
curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/invoices/sint/replace-delivered" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "invoice_item_id": 5,
    "replacements": []
  }'