Schedule editing creation service
Consuming this service is mandatory in the schedule editing flow. As a result of this operation, the merchant will obtain a SEID that will be necessary for the next step of the flow.
The SEID has a time limit for its utilization. This deadline is configured on e-SiTef, and if it’s exceeded, the editing transaction will have its status altered from NOV
(new) to EXP
(expired), which prevents future operations with this transaction, making it necessary to consume the editing creation service again.
Call details
- Resource:
/v1/schedules/edits
- HTTP Method:
POST
- Request format:
JSON
- Response format:
JSON
- Header parameters:
Parameter | Description | Format | Mandatory |
---|---|---|---|
merchant_id | Merchant code on e-SiTef. The production and certification codes will be different. | < 15 AN | YES |
merchant_key | Merchant authentication key on e-SiTef. The production and certification keys will be different. | < 80 AN | YES |
Content-Type | It must be sent with the value application/json . | = 15 AN | YES |
Example
Below is an example of the schedule editing creation service call using the cURL tool.
Request:
curl
--request POST "https://esitef-homologacao.softwareexpress.com.br/e-sitef/api/v1/schedules/edits"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxxxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--data-binary
{
"sid":"qwertyuiopasdfghjklzxcvbnm0123456789qwertyuiopasdfghjklzxcvbnm01",
"merchant_data":"14114532781"
}
--verbose
Authenticity POST:
seid=qwertyuiopasdfghjklzxcvbnm0123456789qwertyuiopasdfghjklzxcvbnm02
merchant_data=14114532781
sid=qwertyuiopasdfghjklzxcvbnm0123456789qwertyuiopasdfghjklzxcvbnm01
Response:
{
"code":"0",
"message":"OK. Transaction successful."
}
Request parameters
The table below describes the request parameters of the schedule editing creation service:
Parameter | Description | Format | Mandatory |
---|---|---|---|
sid | Identifier of the schedule to be edited. | = 64 AN | YES |
merchant_data | Data generated by the merchant that will be returned on the authenticity POST. This field can be used to help the merchant to identify the source of the received authenticity POSTs. | < 20 AN | NO |
Authenticity POST parameters
The table below describes the parameters sent by e-SiTef on the authenticity POST:
Parameter | Description | Format |
---|---|---|
seid | Identifier of the schedule editing to be used in the next step of the flow. | = 64 AN |
sid | Identifier of the schedule to be altered. | = 64 AN |
merchant_data | Data sent by the merchant to help identifying the source of the authenticity POST. | < 20 AN |
e-SiTef can also send new parameters without previous warning, which means that the merchant’s application must be prepared to receive extra fields and just ignore them.
Response parameters
If successful, the HTTP response code will be 201
. Any other code must be interpreted as an error. The table below describes the response parameters of the schedule editing creation service:
Parameter | Description | Format |
---|---|---|
code | e-SiTef response code. Any code different from 0 (zero) means failure. Learn more. | < 4 N |
message | e-SiTef response message. | < 500 AN |