amount for that package.credit_type_id and package_id must reference existing records; omitting either (or referencing a non-existent id) fails with an HTTP 400 and an Entity not saved message. amount is optional and defaults to 0 when omitted.id. To update an existing record instead, POST to this same path with an id in the body (see Edit Package Credit Type).curl --location --globoff 'https://.daftara.com/api2/credit_type_package' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"credit_type_id": 1,
"package_id": 1,
"amount": 10
}'{
"message": "Credit Type Package added successfully",
"id": 1
}