raims payment-links
Manage payment links
From command to result
Create a link for an existing charge and decide separately whether to request email delivery. A created link, an accepted email request, and a delivered message are different results.
Configure the profile and credential before running real reads. With an API
key, the key determines the company and environment. --environment selects
an environment only for OAuth.
Prepare the link
Shellraims payment-links create --charge-id CHARGE_ID --dry-runReview the charge and preview options. To create it, use the correct profile and remove
--dry-runafter review; keepdata.idanddata.url.Check the link
Shellraims --profile sandbox --output json payment-links get PAYMENT_LINK_IDRead the returned ID and the charge's current conditions before sharing the URL.
Review the email request
Shellraims --profile sandbox --output json payment-links send-email PAYMENT_LINK_ID --dry-runThe preview does not send email. Remove
--dry-runonly to request delivery to the authorized recipient. HTTP 202 accepts the request without confirming delivery; respect the returned waiting period before another request.
Choose a command
| Command | Purpose |
|---|---|
raims payment-links create | Create or retrieve a payment link |
raims payment-links get | Get a payment link |
raims payment-links list | List payment links |
raims payment-links send-email | Request delivery of a payment link by email |
raims payment-links update | Update a payment link |
The previews below use --dry-run and do not send the request. Replace placeholders and review the result before sending a write.
Body fields, filters, and headers are sent only when supplied. Execution option defaults do not fill API fields.
raims payment-links
Manage payment links
raims payment-links [flags]Execution options
--help,-hbooldefault: false- help for payment-links
See global options.
Subcommands: raims payment-links create, raims payment-links get, raims payment-links list, raims payment-links send-email, raims payment-links update.
raims payment-links create
Create or retrieve a payment link
raims payment-links create [flags]OAuth environments: Sandbox, Production. Success responses: 200, 201.
Example 1
raims --profile PROFILE --output json payment-links create --data-file request.json --dry-runExample 2
raims payment-links create --charge-id="ch_4CnJiWSrsZBoaTg47OcMzD" --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Charge link
{
"id": "pl_3AbHiWSrsZBoaTg47OcMzC",
"charge_id": "ch_4CnJiWSrsZBoaTg47OcMzD",
"url": "https://checkout.raims.com/4ERXvDgy82D8CLNY44AVr6",
"success_redirect_url": null,
"cancel_redirect_url": null,
"payment_method_types": null
}Body fields
--cancel-redirect-urlstringaccepts null sent only when supplied- HTTPS URL for returning to your website. This return does not cancel the charge. Omitting it, sending null or empty text keeps the existing URL.
--charge-idstringrequired in the body sent only when supplied- Existing charge identifier. The link uses that charge's customer, amount and due date.
--payment-method-typesintegerArrayaccepts null sent only when supplied- Methods allowed in the link. Omitting it keeps the configuration; null removes the custom configuration. A list limits checkout methods and does not expand those allowed by the charge. Repeat the option for each item.
--success-redirect-urlstringaccepts null sent only when supplied- HTTPS return URL after confirmed payment. Omitting it, sending null or empty text keeps the existing URL.
Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--body-nullstringArraydefault: []- Set a nullable JSON body field to null by its JSON name (repeat for each field; cannot be combined with --data-file)
--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for create
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
See global options.
Create or retrieve a payment link.
POST /v1/payment_links
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.
Read the JSON request body with --data-file PATH, or --data-file - for standard input. You can also provide the body options listed below. Repeat array options for each item. Do not combine file input with body options. Only supplied fields are sent. When listed, --body-null FIELD sends an explicit null for a nullable field. Array size and uniqueness follow the endpoint contract. Objects without dedicated body options and arrays of objects use file input.
JSON body fields:
cancel_redirect_url string optional, nullable
charge_id string required
payment_method_types array<integer> optional, nullable; allowed: 1, 2
success_redirect_url string optional, nullable
Nested requirements apply when the parent object is present, or for each supplied array item. Omit an optional field to leave it unspecified; null is accepted only for nullable fields.
JSON body example (save as request.json):
{
"charge_id": "ch_4CnJiWSrsZBoaTg47OcMzD",
"success_redirect_url": "https://loja.example.com/pedido/concluido",
"cancel_redirect_url": "https://loja.example.com/pedido",
"payment_method_types": [
1
]
}
Example values are illustrative. Replace resource IDs and review the request before sending it.raims payment-links get
Get a payment link
raims payment-links get ID [flags]OAuth environments: Sandbox, Production. Success responses: 200.
Example
raims --profile PROFILE --output json payment-links get ID --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Link available for payment
{
"id": "pl_3AbHiWSrsZBoaTg47OcMzC",
"charge_id": "ch_4CnJiWSrsZBoaTg47OcMzD",
"url": "https://checkout.raims.com/4ERXvDgy82D8CLNY44AVr6",
"success_redirect_url": null,
"cancel_redirect_url": null,
"payment_method_types": null
}Execution options
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for get
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
See global options.
Get a payment link.
GET /v1/payment_links/{id}
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.raims payment-links list
List payment links
raims payment-links list [flags]OAuth environments: Sandbox, Production. Success responses: 200.
Example
raims --profile PROFILE --output json payment-links list --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Page of links
{
"list": [
{
"id": "pl_3AbHiWSrsZBoaTg47OcMzC",
"charge_id": "ch_4CnJiWSrsZBoaTg47OcMzD",
"url": "https://checkout.raims.com/4ERXvDgy82D8CLNY44AVr6",
"success_redirect_url": null,
"cancel_redirect_url": null,
"payment_method_types": null,
"created_at": 1791936000,
"updated_at": 1791936000,
"is_active": true
}
],
"page": {
"page_size": 10,
"has_next": false,
"has_previous": false,
"next_after": null,
"previous_before": null
}
}Query filters
--afterstringsent only when supplied- Read after this opaque cursor (cannot be combined with --before)
--beforestringsent only when supplied- Read before this opaque cursor (cannot be combined with --after)
--charge-idstringsent only when supplied- Filter by charge ID
--page-sizeint64sent only when supplied- Results per page (the API normalizes the requested size)
Execution options
--allbooldefault: false- Read all pages as separate results (JSON Lines with --output json)
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for list
--max-pagesintdefault: 100- Maximum pages to read with --all (1-10000)
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
See global options.
List payment links.
GET /v1/payment_links
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.raims payment-links send-email
Request delivery of a payment link by email
raims payment-links send-email ID [flags]OAuth environments: Sandbox, Production. Success responses: 202.
HTTP 202 means the request is pending. Query the returned resource before repeating a write; the command does not wait for completion.
Example
raims --profile PROFILE --output json payment-links send-email ID --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Email request registered
{
"id": "pl_3AbHiWSrsZBoaTg47OcMzC",
"charge_id": "ch_4CnJiWSrsZBoaTg47OcMzD",
"recipient_email": "cliente@example.com",
"retry_after_seconds": 60,
"retry_after_until": 1791936060
}Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for send-email
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
See global options.
Request delivery of a payment link by email.
POST /v1/payment_links/{id}/send_email
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.
HTTP 202 means the request is pending. Inspect the returned resource before repeating an operation; this command does not wait for completion.raims payment-links update
Update a payment link
raims payment-links update ID [flags]OAuth environments: Sandbox, Production. Success responses: 200.
Example 1
raims --profile PROFILE --output json payment-links update ID --data-file request.json --dry-runExample 2
raims payment-links update ID --cancel-redirect-url="https://loja.example.com/pedido" --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Charge link
{
"id": "pl_3AbHiWSrsZBoaTg47OcMzC",
"charge_id": "ch_4CnJiWSrsZBoaTg47OcMzD",
"url": "https://checkout.raims.com/4ERXvDgy82D8CLNY44AVr6",
"success_redirect_url": null,
"cancel_redirect_url": null,
"payment_method_types": null
}Body fields
--cancel-redirect-urlstringaccepts null sent only when supplied- HTTPS URL for returning to your website. This return does not cancel the charge. Omitting it, sending null or empty text keeps the existing URL. To remove it, use clear_cancel_redirect_url with true without providing a populated URL.
--clear-cancel-redirect-urlboolsent only when supplied- Send true to remove the destination for returning to the website. False or omission does not request removal. Do not send true together with a populated cancel_redirect_url.
--clear-success-redirect-urlboolsent only when supplied- Send true to remove the return destination after payment. False or omission does not request removal. Do not send true together with a populated success_redirect_url.
--is-activeboolsent only when supplied- Send false to pause checkout and true to reactivate the same URL. Omitting it keeps the current state. Pausing does not cancel issued Pix or boleto or extend the due date.
--payment-method-typesintegerArrayaccepts null sent only when supplied- Methods allowed in the link. Omitting it keeps the configuration; null removes the custom configuration. A list limits checkout methods and does not expand those allowed by the charge. Repeat the option for each item.
--success-redirect-urlstringaccepts null sent only when supplied- HTTPS return URL after confirmed payment. Omitting it, sending null or empty text keeps the existing URL. To remove it, use clear_success_redirect_url with true without providing a populated URL.
Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--body-nullstringArraydefault: []- Set a nullable JSON body field to null by its JSON name (repeat for each field; cannot be combined with --data-file)
--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for update
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
See global options.
Update a payment link.
PATCH /v1/payment_links/{id}
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.
Read the JSON request body with --data-file PATH, or --data-file - for standard input. You can also provide the body options listed below. Repeat array options for each item. Do not combine file input with body options. Only supplied fields are sent. When listed, --body-null FIELD sends an explicit null for a nullable field. Array size and uniqueness follow the endpoint contract. Objects without dedicated body options and arrays of objects use file input.
JSON body fields:
cancel_redirect_url string optional, nullable
clear_cancel_redirect_url boolean optional
clear_success_redirect_url boolean optional
is_active boolean optional
payment_method_types array<integer> optional, nullable; allowed: 1, 2
success_redirect_url string optional, nullable
Nested requirements apply when the parent object is present, or for each supplied array item. Omit an optional field to leave it unspecified; null is accepted only for nullable fields.
JSON body example (save as request.json):
{
"clear_success_redirect_url": true,
"cancel_redirect_url": "https://loja.example.com/pedido"
}
Example values are illustrative. Replace resource IDs and review the request before sending it.