curl --request POST \
--url https://api.gigstack.io/v2/payments/links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"operation_id": "11111111-1111-4111-8111-111111111111",
"expected_livemode": false,
"currency": "MXN",
"items": [
{
"total": 100,
"quantity": 1
}
],
"custom_method_types": [
{
"id": "bank"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
operation_id: '11111111-1111-4111-8111-111111111111',
expected_livemode: false,
currency: 'MXN',
items: [{total: 100, quantity: 1}],
custom_method_types: [{id: 'bank'}]
})
};
fetch('https://api.gigstack.io/v2/payments/links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gigstack.io/v2/payments/links"
payload = {
"operation_id": "11111111-1111-4111-8111-111111111111",
"expected_livemode": False,
"currency": "MXN",
"items": [
{
"total": 100,
"quantity": 1
}
],
"custom_method_types": [{ "id": "bank" }]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"team_id": "<string>",
"livemode": true,
"status": "<string>",
"amount": 123,
"total": 123,
"url": "<string>",
"short_url": "<string>",
"owner": "<string>",
"created_at": 123,
"updated_at": 123,
"deleted_at": 123,
"revision": "<string>",
"effect_scope": "team_mode_payment_link",
"views": 1,
"historical_references": {
"invoices": [
"<string>"
],
"receipts": [
"<string>"
],
"unresolved_count": 1,
"authorization": "resolve_each_resource"
},
"items": [
{}
],
"currency": "<string>",
"exchange": 500000000,
"description": "<string>",
"metadata": {},
"limitDaysToPay": 1825,
"automations": [
{
"type": "invoice",
"from": "payments",
"ref": "payments",
"action": "create"
}
],
"custom_method_types": [
{
"id": "card"
}
]
},
"operation": {
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"team_id": "<string>",
"livemode": true,
"action": "create",
"payment_link_id": "<string>",
"status": "completed",
"completed_at": 123,
"revision": "<string>",
"effect_scope": "team_mode_payment_link"
}
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}Create reusable payment link
Reusable link configuration is a mode-specific resource. Saving does not create a payment, charge a provider, or stamp an invoice. Later payer use can create payments and run configured invoice automation. Current original credentials and payment-module authority are checked. Source/offline contract; no live provider validation is claimed. Persist operation_id before the request. expected_livemode asserts the selected mode; it does not override it. Update/delete require the latest GET revision. Lost acknowledgments are recovered by reading the same operation. Delete is allowed after use and retains generated payment/invoice history. Short URL may be null; use the full URL.
curl --request POST \
--url https://api.gigstack.io/v2/payments/links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"operation_id": "11111111-1111-4111-8111-111111111111",
"expected_livemode": false,
"currency": "MXN",
"items": [
{
"total": 100,
"quantity": 1
}
],
"custom_method_types": [
{
"id": "bank"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
operation_id: '11111111-1111-4111-8111-111111111111',
expected_livemode: false,
currency: 'MXN',
items: [{total: 100, quantity: 1}],
custom_method_types: [{id: 'bank'}]
})
};
fetch('https://api.gigstack.io/v2/payments/links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gigstack.io/v2/payments/links"
payload = {
"operation_id": "11111111-1111-4111-8111-111111111111",
"expected_livemode": False,
"currency": "MXN",
"items": [
{
"total": 100,
"quantity": 1
}
],
"custom_method_types": [{ "id": "bank" }]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"team_id": "<string>",
"livemode": true,
"status": "<string>",
"amount": 123,
"total": 123,
"url": "<string>",
"short_url": "<string>",
"owner": "<string>",
"created_at": 123,
"updated_at": 123,
"deleted_at": 123,
"revision": "<string>",
"effect_scope": "team_mode_payment_link",
"views": 1,
"historical_references": {
"invoices": [
"<string>"
],
"receipts": [
"<string>"
],
"unresolved_count": 1,
"authorization": "resolve_each_resource"
},
"items": [
{}
],
"currency": "<string>",
"exchange": 500000000,
"description": "<string>",
"metadata": {},
"limitDaysToPay": 1825,
"automations": [
{
"type": "invoice",
"from": "payments",
"ref": "payments",
"action": "create"
}
],
"custom_method_types": [
{
"id": "card"
}
]
},
"operation": {
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"team_id": "<string>",
"livemode": true,
"action": "create",
"payment_link_id": "<string>",
"status": "completed",
"completed_at": 123,
"revision": "<string>",
"effect_scope": "team_mode_payment_link"
}
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}{
"success": false,
"error": {
"code": "invalid_request_body",
"message": "An error occurred"
},
"timestamp": 1767225600000
}Authorizations
Authentication Method: HTTP Bearer token.
The runtime requires the literal Bearer prefix — a bare token in the
Authorization header is rejected with 401 unauthorized.
Header Format: Authorization: Bearer YOUR_API_KEY
Your API key is a JWT. Live keys operate on live data (livemode: true);
test keys operate on isolated test data (livemode: false).
Get your key at: app.gigstack.pro/settings?tab=api
Errors: credential failures are answered by the authentication layer with a raw
{ "message": … } body, not the standardized envelope — 401 for a missing, malformed or
expired token, 403 for a revoked key or a plan without API access. See the Unauthorized
and AuthForbidden responses.
Query Parameters
Selected authorized team; Firebase must match current authenticated team. Mode is current persisted preference or immutable credential mode.
Body
^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$1 - 200 elementsShow child attributes
Show child attributes
^[A-Z]{3}$1e-8 <= x <= 1000000000100001 <= x <= 36501Show child attributes
Show child attributes
7Show child attributes
Show child attributes