Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

SINPEMovil

How to use SINPEMovil to submit a payin in Costa Rica.

Payin by SINPE Móvil

POST https://gateway-test.pagsmile.com/trade/pay

This endpoint allows you to submit a payin through SINPE Móvil in Costa Rica. Payments are processed in Costa Rican colón (CRC) and are typically credited instantly after the customer completes the payment.

Headers

Name
Type
Required
Constraints
Description

Content-Type

string

Yes

Fixed value: application/json; charset=UTF-8.

Media type of the request body.

Authorization

string

Yes

Use Basic Base64(app_id:security_key).

HTTP Basic authentication credential generated with your App ID and security key.

Request Body

Name
Type
Required
Constraints
Description

app_id

string

Yes

Use the App ID assigned by Pagsmile.

Merchant application ID.

timestamp

string

Yes

Format: yyyy-MM-dd HH:mm:ss.

Date and time when the request is sent.

out_trade_no

string

Yes

Maximum length: 64 characters. Must be unique for the merchant application.

Merchant order number.

method

string

Yes

Fixed value: SINPEMovil.

Payment method.

order_amount

string

Yes

Numeric value with up to two decimal places. Channel-specific minimum and maximum amounts are not currently provided.

Payment amount in CRC.

order_currency

string

Yes

Fixed value: CRC.

Payment currency.

subject

string

Yes

Maximum length: 128 characters.

Payment reason or item title.

content

string

No

Maximum length: 255 characters.

Payment or item details.

notify_url

string

Yes

Provide an endpoint that can receive server-to-server notifications.

URL to which Pagsmile sends payment status notifications.

return_url

string

No

Provide a valid merchant URL when a return page is required.

URL to which the customer is redirected after completing the payment flow.

buyer_id

string

Yes

Maximum length: 128 characters.

Unique customer identifier in the merchant system.

timeout_express

string

No

Supports minutes (m), hours (h or H), days (d or D), or end of the current day (c). For example, 1c means the order expires at the end of the current day.

Requested order timeout. If omitted, the system default is 90 minutes.

customer.phone

string

Yes

Submit the customer's phone number, including the country calling code.

Customer phone number used for the SINPE Móvil payment.

customer.identify.type

string

Yes

One of: Persona física nacional, Persona física residente, Entidad estatal, Persona jurídica, Institución autónoma, Diplomático, or Extranjero.

Customer identification type.

customer.identify.number

string

Yes

Maximum length: 64 characters.

Customer identification number.

Request Sample

Response Sample

Last updated