curl --request PATCH \
--url https://api.scholarlysoftware.com/api/v1/credits/line_items/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "credit_line_item",
"attributes": {
"transaction_date": "2023-12-25",
"amount": 123,
"description": "<string>",
"category": "adjustment",
"status": "active",
"external_id": "EXT-12345",
"term": "<string>",
"comment": "<string>"
},
"relationships": {
"source": {
"data": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "credit_line_item",
"attributes": {
"transaction_date": "2023-12-25",
"amount": 123,
"description": "<string>",
"status": "active",
"custom_fields": {},
"category": "adjustment",
"external_id": "EXT-12345",
"term": "<string>",
"comment": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"relationships": {
"profile": {
"links": {
"related": "<string>"
},
"meta": {},
"data": {
"type": "profile",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"source": {
"links": {
"related": "<string>"
},
"meta": {},
"data": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
}Updates a specific credit line item
curl --request PATCH \
--url https://api.scholarlysoftware.com/api/v1/credits/line_items/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "credit_line_item",
"attributes": {
"transaction_date": "2023-12-25",
"amount": 123,
"description": "<string>",
"category": "adjustment",
"status": "active",
"external_id": "EXT-12345",
"term": "<string>",
"comment": "<string>"
},
"relationships": {
"source": {
"data": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "credit_line_item",
"attributes": {
"transaction_date": "2023-12-25",
"amount": 123,
"description": "<string>",
"status": "active",
"custom_fields": {},
"category": "adjustment",
"external_id": "EXT-12345",
"term": "<string>",
"comment": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"relationships": {
"profile": {
"links": {
"related": "<string>"
},
"meta": {},
"data": {
"type": "profile",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"source": {
"links": {
"related": "<string>"
},
"meta": {},
"data": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer token
Credit Line Item UUID
Show child attributes
credit line item updated with custom_fields overwriting existing value
Show child attributes