- Introduction
- Getting Started
- Authentication
- Error Handling
- Contact Support
- Modaltrans API
- Get Auth Token
- Accounting
- Customs
- Logistics
- Depot
- Fleet Management
- Drivers
- Vehicles
- Gps Service Controller
- Service Logs
- Periodic Documents
- CRM
- Timelines
- S3 Files
- Notifications
- User Details
Create a Periodic Document
Developing
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
POST
/api/v1/periodocs
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
periodoc
object
required
periodoc_type_id
integer
required
doc_no
string
required
doc_date
string <date>
required
start_date
string <date>
required
due_date
string <date>
required
title
string
required
vehicle_id
integer
required
base64_image
string
optional
Example
{
"periodoc": {
"periodoc_type_id": 30,
"doc_no": "exp1212",
"doc_date": "2024-09-13",
"start_date": "2024-07-15",
"due_date": "2024-08-15",
"title": "ExampleForApi",
"vehicle_id": 53283
},
"base64_image": "Base64EncodedFileExample"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://demo.modaltrans.com/api/v1/periodocs' \
--header 'Content-Type: application/json' \
--data-raw '{
"periodoc": {
"periodoc_type_id": 30,
"doc_no": "exp1212",
"doc_date": "2024-09-13",
"start_date": "2024-07-15",
"due_date": "2024-08-15",
"title": "ExampleForApi",
"vehicle_id": 53283
},
"base64_image": "Base64EncodedFileExample"
}'
Responses
🟢201Created
application/json
Body
uuid
string
required
periodoc_type_id
integer
required
doc_no
string
required
doc_date
string <date>
required
start_date
string <date>
required
due_date
string <date>
required
status
string
required
periodoc_type_name
string
required
Example
{
"uuid": "string",
"periodoc_type_id": 0,
"doc_no": "string",
"doc_date": "2019-08-24",
"start_date": "2019-08-24",
"due_date": "2019-08-24",
"status": "string",
"periodoc_type_name": "string"
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-09-13 07:34:09