Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
loilet committed Apr 10, 2024
1 parent b9fc775 commit eb3856b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
25 changes: 23 additions & 2 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@
"Source Address"
],
"summary": "Request a Sender Address",
"description": "Submit a request to register a new Sender ID. When making a request to this endpoint, you will always need to specify ```sender_address_type``` and ```usage_type``` parameters. The following table shows the acceptable values and combinations for these parameters:\n | Sender ID | sender_address_type | usage_type |\n |--- |--- |--- |\n | Alpha tag | `ALPHANUMERIC` | `ALPHANUMERIC` |\n | Personal number | `INTERNATIONAL` | `OWN_NUMBER` | \n\nThe other parameters required for your request will depend on the type of Sender ID you are registering.\n\n### Sender ID is an Alpha Tag\nThe following parameters are used when registering an alpha tag as a Sender ID:\n - ```sender_address:``` **(Required)**. The alphanumeric string that you wish register as an alpha tag. This parameter is case insensitive. If this alpha tag already exists on your account, you will receive a conflict error message.\n - ```destination_countries:``` **(Required)**. The countries that you wish to register the alpha tag for use in, in two-character ISO 3166 format. Currently only AU is supported.\n - ```sender_address_type:``` **(Required)**. For alpha tags this is always ALPHANUMERIC\n - ```usage_type:``` **(Required)**. For alpha tags this is always ALPHANUMERIC\n - ```label:``` **(Optional)**. A reference name for the sender ID to allow you to easily track it.\n - ```reason:``` **(Required)**. This is a specifically formatted string made up of the following sub-items (all of which are required):\n\n - `useCase:` one of the following:\n - `SOLE_TRADER_NAME`\n - `COMPANY_NAME`\n - `PARTNERSHIP_NAME`\n - `REGISTERED_TRUST_NAME`\n - `CO_OPERATIVE_NAME`\n - `INDIGENOUS_CORPORATION_NAME`\n - `REGISTERED_ORGANISATION_NAME`\n - `PERSONAL_NAME`\n - `AUSTRALIAN_TRADEMARK`\n - `INTERNATIONAL_TRADEMARK`\n - `AUSTRALIAN_GOVERNMENT_AGENCY_OR_ENTITY`\n - `FOREIGN_GOVERNMENT_AGENCY_OR_ENTITY`\n - `PRODUCT_OR_SERVICE_NAME`\n - `ACRONYM_INITIALISM`\n - `CONTRACTION_OF_NAME`\n - `OTHER`\n - `description:` A description used if OTHER was selected as the use case. Limited to 200 characters.\n\n - `email:` The preferred contact email for our approval team when additional details are required.\n\n - `australianGovernmentAgencyOrEntityName:` The name of your organsation.\n\n - `abn:` Your organisation’s Australian Business Number\n\n - `statement:` A legal declaration\n - If applying for your own business: “We are authorized to use the Sender ID with a valid use case.”\n - If applying on behalf of a third-party entity: “We are authorized to use the Sender ID on behalf of [full entity name of sender] with a valid use case.”\n\nThe reason parameter must contain all the above items. A well formatted reason looks like the following:\n - \"reason\": \"{\\n \\\"useCase\\\":\\\"AUSTRALIAN_GOVERNMENT_AGENCY_OR_ENTITY\\\",\\n \\\"description\\\":\\\"blah blah\\\",\\n \\\"email\\\":\\\"[email protected]\\\",\\n \\\"australianGovernmentAgencyOrEntityName\\\":\\\"blah blah\\\",\\n \\\"statement\\\":\\\"We are authorised to use the Sender ID on behalf of [full entity name of sender] with a valid use case.\\\"\\n}\\n\"\n\n### Sender ID is a Personal Number\nThe following parameters are used when registering a personal mobile phone number as a Sender ID: \n\n - ```sender_address:``` **(Required)**. The phone number that you wish register as a personal number. This number must be in E.164. If this number is already registered to an account, you will receive a conflict error message. \n\n - ```destination_countries:``` **(Required)**. The country of the number that you wish to register, in two-character ISO 3166 format. Refer to the **Types of Sender ID** section for a list of currently supported countries. \n\n - ```sender_address_type:``` **(Required)**. For personal numbers this is always INTERNATIONAL \n\n - ```usage_type:``` **(Required)**. For personal numbers this is always OWN_NUMBER \n\n - ```label:``` **(Optional)**. A reference name for the sender ID to allow you to easily track it. \n\n - ```Reason:``` **(Required)**. A string describing why you wish to register the number as a Sender ID. Limited to 200 characters.\n",
"description": "Submit a request to register a new Sender ID. When making a request to this endpoint, you will always need to specify ```sender_address_type``` and ```usage_type``` parameters. The following table shows the acceptable values and combinations for these parameters:\n | Sender ID | sender_address_type | usage_type |\n |--- |--- |--- |\n | Alpha tag | `ALPHANUMERIC` | `ALPHANUMERIC` |\n | Personal number | `INTERNATIONAL` | `OWN_NUMBER` | \n\nThe other parameters required for your request will depend on the type of Sender ID you are registering.\n\n### Sender ID is an Alpha Tag\nThe following parameters are used when registering an alpha tag as a Sender ID:\n - ```sender_address:``` **(Required)**. The alphanumeric string that you wish register as an alpha tag. This parameter is case insensitive. If this alpha tag already exists on your account, you will receive a conflict error message.\n - ```destination_countries:``` **(Required)**. The countries that you wish to register the alpha tag for use in, in two-character ISO 3166 format. Currently AU and GB are supported.\n - ```sender_address_type:``` **(Required)**. For alpha tags this is always ALPHANUMERIC\n - ```usage_type:``` **(Required)**. For alpha tags this is always ALPHANUMERIC\n - ```label:``` **(Optional)**. A reference name for the sender ID to allow you to easily track it.\n - ```reason:``` **(Required)**. This is a specifically formatted string made up of the following sub-items (all of which are required):\n\n - `useCase:` one of the following:\n - `SOLE_TRADER_NAME`\n - `COMPANY_NAME`\n - `PARTNERSHIP_NAME`\n - `REGISTERED_TRUST_NAME`\n - `CO_OPERATIVE_NAME`\n - `INDIGENOUS_CORPORATION_NAME`\n - `REGISTERED_ORGANISATION_NAME`\n - `PERSONAL_NAME`\n - `AUSTRALIAN_TRADEMARK`\n - `INTERNATIONAL_TRADEMARK`\n - `AUSTRALIAN_GOVERNMENT_AGENCY_OR_ENTITY`\n - `FOREIGN_GOVERNMENT_AGENCY_OR_ENTITY`\n - `PRODUCT_OR_SERVICE_NAME`\n - `ACRONYM_INITIALISM`\n - `CONTRACTION_OF_NAME`\n - `OTHER`\n - `description:` A description used if OTHER was selected as the use case. Limited to 200 characters.\n\n - `email:` The preferred contact email for our approval team when additional details are required.\n\n - `australianGovernmentAgencyOrEntityName:` The name of your organsation.\n\n - `abn:` Your organisation’s Australian Business Number\n\n - `statement:` A legal declaration\n - If applying for your own business: “We are authorized to use the Sender ID with a valid use case.”\n - If applying on behalf of a third-party entity: “We are authorized to use the Sender ID on behalf of [full entity name of sender] with a valid use case.”\n\nThe reason parameter must contain all the above items. A well formatted reason looks like the following:\n - \"reason\": \"{\\n  \\\\\"useCase\\\\\":\\\\\"AUSTRALIAN_GOVERNMENT_AGENCY_OR_ENTITY\\\\\",\\n  \\\\\"description\\\\\":\\\\\"bal bla\\\\\",\\n  \\\\\"email\\\\\":\\\\\"[email protected]\\\\\",\\n  \\\\\"australianGovernmentAgencyOrEntityName\\\\\":\\\\\"bla bla\\\\\",\\n  \\\\\"statement\\\\\":\\\\\"We are authorised to use the Sender ID on behalf of [full entity name of sender] with a valid use case.\\\\\"\\n}\\n\"\n\n### Sender ID is a Personal Number\nThe following parameters are used when registering a personal mobile phone number as a Sender ID: \n\n - ```sender_address:``` **(Required)**. The phone number that you wish register as a personal number. This number must be in E.164. If this number is already registered to an account, you will receive a conflict error message. \n\n - ```destination_countries:``` **(Required)**. The country of the number that you wish to register, in two-character ISO 3166 format. Refer to the **Types of Sender ID** section for a list of currently supported countries. \n\n - ```sender_address_type:``` **(Required)**. For personal numbers this is always INTERNATIONAL \n\n - ```usage_type:``` **(Required)**. For personal numbers this is always OWN_NUMBER \n\n - ```label:``` **(Optional)**. A reference name for the sender ID to allow you to easily track it. \n\n - ```Reason:``` **(Required)**. A string describing why you wish to register the number as a Sender ID. Limited to 200 characters.\n",
"operationId": "requestSenderAddressUsingPOST",
"parameters": [],
"requestBody": {
Expand Down Expand Up @@ -3574,13 +3574,23 @@
{
"name": "type",
"in": "query",
"description": "Filter results by Number type",
"description": "Filter results by Number type. When both `type` and `types` are provided, `types` will take precedence, and `type` will be ignored.",
"style": "form",
"explode": true,
"schema": {
"$ref": "#/components/schemas/Type"
}
},
{
"name": "types",
"in": "query",
"description": "Filter results by Number Types",
"style": "form",
"explode": true,
"schema": {
"$ref": "#/components/schemas/Types"
}
},
{
"name": "classification",
"in": "query",
Expand Down Expand Up @@ -9300,6 +9310,17 @@
"type": "string",
"example": "MOBILE"
},
"Types": {
"title": "Types",
"enum": [
"MOBILE",
"LANDLINE",
"TOLL_FREE",
"SHORT_CODE"
],
"type": "string",
"example": "MOBILE,LANDLINE,TOLL_FREE"
},
"Assignment": {
"title": "Assignment",
"type": "object",
Expand Down
22 changes: 19 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ paths:
### Sender ID is an Alpha Tag
The following parameters are used when registering an alpha tag as a Sender ID:
- ```sender_address:``` **(Required)**. The alphanumeric string that you wish register as an alpha tag. This parameter is case insensitive. If this alpha tag already exists on your account, you will receive a conflict error message.
- ```destination_countries:``` **(Required)**. The countries that you wish to register the alpha tag for use in, in two-character ISO 3166 format. Currently only AU is supported.
- ```destination_countries:``` **(Required)**. The countries that you wish to register the alpha tag for use in, in two-character ISO 3166 format. Currently AU and GB are supported.
- ```sender_address_type:``` **(Required)**. For alpha tags this is always ALPHANUMERIC
- ```usage_type:``` **(Required)**. For alpha tags this is always ALPHANUMERIC
- ```label:``` **(Optional)**. A reference name for the sender ID to allow you to easily track it.
Expand Down Expand Up @@ -1793,7 +1793,7 @@ paths:
- If applying on behalf of a third-party entity: “We are authorized to use the Sender ID on behalf of [full entity name of sender] with a valid use case.”
The reason parameter must contain all the above items. A well formatted reason looks like the following:
- "reason": "{\n \"useCase\":\"AUSTRALIAN_GOVERNMENT_AGENCY_OR_ENTITY\",\n \"description\":\"blah blah\",\n \"email\":\"[email protected]\",\n \"australianGovernmentAgencyOrEntityName\":\"blah blah\",\n \"statement\":\"We are authorised to use the Sender ID on behalf of [full entity name of sender] with a valid use case.\"\n}\n"
- "reason": "{\n  \\"useCase\\":\\"AUSTRALIAN_GOVERNMENT_AGENCY_OR_ENTITY\\",\n  \\"description\\":\\"bal bla\\",\n  \\"email\\":\\"[email protected]\\",\n  \\"australianGovernmentAgencyOrEntityName\\":\\"bla bla\\",\n  \\"statement\\":\\"We are authorised to use the Sender ID on behalf of [full entity name of sender] with a valid use case.\\"\n}\n"
### Sender ID is a Personal Number
The following parameters are used when registering a personal mobile phone number as a Sender ID:
Expand Down Expand Up @@ -3715,11 +3715,18 @@ paths:
example: AU
- name: type
in: query
description: Filter results by Number type
description: 'Filter results by Number type. When both `type` and `types` are provided, `types` will take precedence, and `type` will be ignored.'
style: form
explode: true
schema:
$ref: '#/components/schemas/Type'
- name: types
in: query
description: Filter results by Number Types
style: form
explode: true
schema:
$ref: '#/components/schemas/Types'
- name: classification
in: query
description: Filter results by Number Classification
Expand Down Expand Up @@ -8044,6 +8051,15 @@ components:
- SHORT_CODE
type: string
example: MOBILE
Types:
title: Types
enum:
- MOBILE
- LANDLINE
- TOLL_FREE
- SHORT_CODE
type: string
example: 'MOBILE,LANDLINE,TOLL_FREE'
Assignment:
title: Assignment
type: object
Expand Down

0 comments on commit eb3856b

Please sign in to comment.