Properties
- Name
object
- Type
- string
- Description
Type of object is always
paymentLink
.
- Name
id
- Type
- string
- Description
Unique identifier for the payment link.
Example:pml_0SNlurA049MEWV1x2CfC8u8im5xU
- Name
ebanx
- Type
- nullable object
- Description
- The details for an EBANX payment link. Present when type is EBANX.
- Name
invoice
- Type
- string
- Description
The unique identifier of the Invoice the payment link is for.
Example:inv_0SNlurA049MEWV1QTRqvd18YuG25
- Name
paymentUrl
- Type
- string
- Description
URL that renders a payment page for the user.
Example:https://api.ebanx.com/ws/redirect/execute?hash=64f2
- Name
status
- Type
- string
- Description
Status of the payment link.
Example:active
Allowed values:active, canceled, completed
- Name
type
- Type
- string
- Description
Type describes the provider of the payment link. Currently only
EBANX
is supported.Example:ebanx
- Name
canceledAt
- Type
- nullable string
- Description
Time when the payment link was canceled and became invalid.
Example:2024-08-14T19:40:34Z
- Name
completedAt
- Type
- nullable string
- Description
Time when the payment link was used for a payment and thus completed.
Example:2024-08-14T19:40:34Z
- Name
createdAt
- Type
- string
- Description
Time when the payment link was created.
Example:2024-08-14T19:38:34Z
Response
{
"object": "paymentLink",
"id": "pml_0SNlurA049MEWV1x2CfC8u8im5xU",
"ebanx": {
"redirectUrl": "https://example.com"
},
"invoice": "inv_0SNlurA049MEWV1QTRqvd18YuG25",
"paymentUrl": "https://api.ebanx.com/ws/redirect/execute?hash=64f2",
"status": "active",
"type": "ebanx",
"canceledAt": "2024-08-14T19:40:34Z",
"completedAt": "2024-08-14T19:40:34Z",
"createdAt": "2024-08-14T19:38:34Z"
}
Create a payment link
Creates a new payment link for an invoice.
Preview
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
Body
- Name
ebanx
- Type
- nullable object
- Description
- The details needed to create a payment link with EBANX. Required for type EBANX.
- Name
invoice
- Type
- string
- Description
The unique identifier of the Invoice the payment link is for.
Example:inv_0SNlurA049MEWV1QTRqvd18YuG25
required- Name
type
- Type
- string
- Description
Type describes the provider of the payment link.
Example:ebanx
required
Path Parameters
- Name
project
- Type
- string
- Description
The unique identifier for the project.
Example:gigs
required
Response Schemas
- Name
object
- Type
- string
- Description
Type of object is always
paymentLink
.
required- Name
id
- Type
- string
- Description
Unique identifier for the payment link.
Example:pml_0SNlurA049MEWV1x2CfC8u8im5xU
required- Name
ebanx
- Type
- nullable object
- Description
- The details for an EBANX payment link. Present when type is EBANX.
required- Name
invoice
- Type
- string
- Description
The unique identifier of the Invoice the payment link is for.
Example:inv_0SNlurA049MEWV1QTRqvd18YuG25
required- Name
paymentUrl
- Type
- string
- Description
URL that renders a payment page for the user.
Example:https://api.ebanx.com/ws/redirect/execute?hash=64f2
required- Name
status
- Type
- string
- Description
Status of the payment link.
Example:active
Allowed values:active, canceled, completed
required- Name
type
- Type
- string
- Description
Type describes the provider of the payment link. Currently only
EBANX
is supported.Example:ebanx
required- Name
canceledAt
- Type
- nullable string
- Description
Time when the payment link was canceled and became invalid.
Example:2024-08-14T19:40:34Z
required- Name
completedAt
- Type
- nullable string
- Description
Time when the payment link was used for a payment and thus completed.
Example:2024-08-14T19:40:34Z
required- Name
createdAt
- Type
- string
- Description
Time when the payment link was created.
Example:2024-08-14T19:38:34Z
required
Request
curl https://api.gigs.com/projects/{project}/paymentLinks \
-X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-d "{\"ebanx\":{\"user\":{\"fullName\":\"Elaine Benes\",\"email\":\"elaine@example.com\",\"taxNumber\":\"290.063.072-03\"},\"redirectUrl\":\"https://example.com\"},\"invoice\":\"inv_0SNlurA049MEWV1QTRqvd18YuG25\",\"type\":\"ebanx\"}"
Response
{
"object": "paymentLink",
"id": "pml_0SNlurA049MEWV1x2CfC8u8im5xU",
"ebanx": {
"redirectUrl": "https://example.com"
},
"invoice": "inv_0SNlurA049MEWV1QTRqvd18YuG25",
"paymentUrl": "https://api.ebanx.com/ws/redirect/execute?hash=64f2",
"status": "active",
"type": "ebanx",
"canceledAt": "2024-08-14T19:40:34Z",
"completedAt": "2024-08-14T19:40:34Z",
"createdAt": "2024-08-14T19:38:34Z"
}